﻿using System;
using System.Windows;
using System.Windows.Controls;

namespace MyFloridaHouse.libSvOpenDistricts.StorageIsolated
{
    public partial class IsolatedStorageIncreaseOnlyDlgWindow : ChildWindow
    {
        public Int64 bytesToReserve = 0;

        public IsolatedStorageIncreaseOnlyDlgWindow(Int64 bytesToReserve)
        {
            InitializeComponent();
            this.bytesToReserve = bytesToReserve;
        }

        private void OKButton_Click(object sender, RoutedEventArgs e)
        {
            IsolatedStorageManager.ReserveStorageSpace(bytesToReserve);
            this.DialogResult = true;
        }

        private void CancelButton_Click(object sender, RoutedEventArgs e)
        {
            this.DialogResult = false;
        }
    }
}

